// 用户相关接口ts类型

// 登录/注册表单
export interface formData {
    username: string,
    password: string
}
export interface emailFormData {
    email: string,
    password: string,
    captcha: string
}

// 基本数据类型
export interface responseData {
    code: string,
    message: string,
    success: boolean
}
// 登录返回类型
export interface loginResponseData extends responseData {
    data: {
        id: string,
        username: string,
        token: string
    }
}